package com.aiyige.base.api;

/**
 * Created by zhuyakun on 2017/10/23.
 */

public class ResponseCode {
    public static final int SERVER_ERROR = 500;
    public static final int SUCCESS = 20000;
    public static final int OK = 200;
    public static final int CREATED = 201;
    public static final int NO_CONTENT = 204;
    public static final int INVALID_REQUEST = 400;
    public static final int UNAUTHORIZED = 401;
    public static final int FORBIDDEN = 403;
    public static final int NOT_FOUND = 404;
    public static final int INTERNAL_SERVER_ERROR = 500;
    public static final int NOT_MODIFIED = 304;

    public static final int TOKEN_EXPIRED = 204010;// Token过期
    public static final int TOKEN_ERROR = 204009;// Token错误
    public static final int NOT_LOGIN = 100004;// 用户没有登录
    public static final int LOGIN_FIRST = 102011;// 请您先登录
    public static final int REPEAT_BUY = 211018;

    public static final String BIND_MOBILE_FIRST = "102039";// 请绑定手机号（在三方登录的时候，如果提示这个错误码，那么就需要绑定手机号，这时候会把三方信息合并到手机号的账号中）


    public static final String DO_NOT_REPEAT_PAY = "211018";// #您已购买当前商品，不能重复购买！

    public static final String DO_NOT_BUY_SELF_GOODS = "211020";//#订单验证失败，卖家不用购买自己的商品{0}！

    public static final String ORDER_GOODS_IS_EMPTY = "211021";//#订单中的商品不能为空！

    public static final String UNDERSTOCK = "211022";//#您购买的商品库存已不足！

    public static final String CLASS_IS_STARTED = "211023";//#您购买的课程已经开课，已无法购买！

    public static final String MOMENT_HAS_CHANGED_PLEASE_CREATE_NEW_ORDER = "211025";//#该商品信息发生变更，请重新下单！

    public static final String SELL_OUT = "211026";//#该商品已经售罄！

    public static final String MESSAGE_HAS_BEEN_PROCESSED = "209001";//该保障信息变更已处理！

    public static final String COUPON_LOOT_OUT = "115010";//优惠券已抢光

    public static final String COUPON_RECEIVED = "115016";//优惠券已达领取上限


}
